package tang;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 启动类
 */

@EnableDiscoveryClient   //DiscoveryClient这个注解用于激活 DiscoveryClient 对象
@EnableEurekaClient   //要使用eureka 的消费和提供者必须要该注解，新版本可以省略
@EnableFeignClients   //开启feign的功能
@SpringBootApplication
public class ProviderApp {

    public static void main(String[] args) {
        SpringApplication.run(ProviderApp.class,args);
    }
}
